-- GENERATED SPELL FOR [Durnholde Sentry] --


function spell0_17819(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17819', 679, 1)
end

function spell1_17819(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17819', 10332, 1)
end

function spell2_17819(pUnit, Event) --@Overpower,n/a--
pUnit:FullCastSpellOnTarget(14895,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17819', 0, 1)
end

function Sorts_17819(pUnit, Event)
local choix_sorts_17819 = math.random(0, 2)
if choix_sorts_17819 == 0 then
pUnit:RegisterEvent('spell0_17819', 1, 1)
end
if choix_sorts_17819 == 1 then
pUnit:RegisterEvent('spell1_17819', 1, 1)
end
if choix_sorts_17819 == 2 then
pUnit:RegisterEvent('spell2_17819', 1, 1)
end
end

function mob17819_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17819', math.random(1500, 3000), 1)
end

function mob17819_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17819_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17819_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17819, 1, 'mob17819_Action')
RegisterUnitEvent(17819, 2, 'mob17819_Leave')
RegisterUnitEvent(17819, 3, 'mob17819_Kill')
RegisterUnitEvent(17819, 4, 'mob17819_Die')
